var gulp = require('gulp');
var mocha = require('gulp-mocha');
var env = require('gulp-env');

require('./gulp-base');

gulp.task("videoAdd", ['set-test-node-env'], function () {

    return gulp.src([
        '../video/video.add.test.js'
    ]).pipe(mocha()).on('error', function (err) {
        process.exit(1);
    }).on('end', function () {
        process.exit(0);
    });
});

gulp.task("videoDelete", ['set-test-node-env'], function () {

    return gulp.src([
        '../video/video.delete.test.js'
    ]).pipe(mocha()).on('error', function (err) {
        process.exit(1);
    }).on('end', function () {
        process.exit(0);
    });
});

gulp.task("videoUpdate", ['set-test-node-env'], function () {

    return gulp.src([
        '../video/video.update.test.js'
    ]).pipe(mocha()).on('error', function (err) {
        process.exit(1);
    }).on('end', function () {
        process.exit(0);
    });
});
gulp.task("videoGet", ['set-test-node-env'], function () {

    return gulp.src([
        '../video/video.get.test.js'
    ]).pipe(mocha()).on('error', function (err) {
        process.exit(1);
    }).on('end', function () {
        process.exit(0);
    });
});
gulp.task("videoList", ['set-test-node-env'], function () {

    return gulp.src([
        '../video/video.list.test.js'
    ]).pipe(mocha()).on('error', function (err) {
        process.exit(1);
    }).on('end', function () {
        process.exit(0);
    });
});



